package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 国家二字码业务对象 country_two_code
 *
 * @author erp
 * @date 2023-06-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CountryTwoCodeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 国家中文名
     */
    @NotBlank(message = "国家中文名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryCn;

    /**
     * 国家英文名
     */
    @NotBlank(message = "国家英文名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String countryEn;

    /**
     * 二字码
     */
    @NotBlank(message = "二字码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isoCode;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
